import { createRouter, createWebHashHistory } from 'vue-router'
import Index from '../views/Index.vue'
import BusinessList from '../views/BusinessList.vue'
import BusinessInfo from '../views/BusinessInfo.vue'
import Login from '../views/Login.vue'
import Orders from '../views/Orders.vue'
import UserAddress from '../views/UserAddress.vue'
import Payment from '../views/Payment.vue'
import OrderList from '../views/OrderList.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: Index
  },
  {
	path: '/index',
	name: 'index',
	component: Index
  },
  {
	path: '/businessList',
	name: 'businessList',
	component: BusinessList
  },
  {
  	path: '/businessInfo',
  	name: 'businessInfo',
  	component: BusinessInfo
  },
  {
  	path: '/login',
  	name: 'login',
  	component: Login
  },
  {
  	path: '/orders',
  	name: 'orders',
  	component: Orders
  },
  {
  	path: '/useraddress',
  	name: 'UserAddress',
  	component: UserAddress
  },
  {
  	path: '/payment',
  	name: 'Payment',
  	component: Payment
  },
  {
  	path: '/orderList',
  	name: 'OrderList',
  	component: OrderList
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
